package com.example.demo.controller;

import com.example.demo.configuration.StudentConfiguration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Autowired
    private StudentConfiguration studentConfiguration;


    @GetMapping("/hello")
    public String hello(){

        return "Hello,Spring Boot 3!";
    }

    @GetMapping("/student")
    public String student(){

        return studentConfiguration.toString();
    }

}
